import React from 'react'
import { StyleSheet } from 'react-native'
import { ScaleS, ScaleT } from 'src/utils/ScreenUtil'
import PropTypes from 'prop-types'
import CustomBoxShadow from '../boxshadow/CustomBoxShadow'
import JobIntentionCardContent from './content'

export default class JobIntentionCard extends React.PureComponent {
  render () {
    const { style, dataSource } = this.props
    return (
      <CustomBoxShadow style={{ ...styles.jobIntentionItemView, ...style }}>
        <JobIntentionCardContent dataSource={dataSource}/>
      </CustomBoxShadow>
    )
  }
}
JobIntentionCard.propTypes = {
  dataSource: PropTypes.object,
  style: PropTypes.object
}
JobIntentionCard.defaultProps = {
  dataSource: {}
}
const styles = StyleSheet.create({
  jobIntentionItemView: {
    width: ScaleS(335),
    backgroundColor: 'white',
    shadowRadius: ScaleS(59),
    shadowOpacity: 0.5,
    shadowColor: '#E3E5EA',
    borderRadius: ScaleS(20),
    shadowOffset: {
      width: 0,
      height: ScaleS(2)
    }
  }
})
